#include <iostream>
#include <fstream>
#include <boost/timer/timer.hpp>
using namespace std;
using namespace boost;

/*
3GHZ 2 core vc9 1.1s  mg 2.1s

*/
int main()
{
	long long int cnt=0;
	ifstream fin("D:\\aaa.data",ios_base::in|ios_base::binary);
	istream &aaf=fin;
	char c;
	aaf.seekg(0,ios_base::end);
	long long int aaflen=aaf.tellg();
	cout<<aaflen<<endl;
	char *gg=NULL;
	aaf.seekg(0,ios_base::beg);
	{
		timer::auto_cpu_timer t;
	for(long long int i=0;i<aaflen;i+=20000000)
	{
		if(gg!=NULL){
			delete []gg;
		}
		gg=new char[20000000];
		if(gg){
			aaf.read(gg,20000000);
			aaf.seekg(i+20000000,ios_base::beg);
		}
		if(i % 200000000){
			wchar_t dd[100];
		}
	}
	}
    return 0;
}
